.class Lcom/waiqin365/lightapp/kehu/dn;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/compons/c/f;

.field final synthetic b:Lcom/waiqin365/lightapp/kehu/dm;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/dm;Lcom/waiqin365/compons/c/f;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/dn;->b:Lcom/waiqin365/lightapp/kehu/dm;

    iput-object p2, p0, Lcom/waiqin365/lightapp/kehu/dn;->a:Lcom/waiqin365/compons/c/f;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 10

    const/4 v9, 0x1

    const/4 v8, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/dn;->a:Lcom/waiqin365/compons/c/f;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/dn;->b:Lcom/waiqin365/lightapp/kehu/dm;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/dm;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/dn;->a:Lcom/waiqin365/compons/c/f;

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;->a:Lcom/waiqin365/compons/c/f;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/dn;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/f;->b()D

    move-result-wide v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/dn;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->c()D

    move-result-wide v2

    sget v4, Lcom/waiqin365/compons/c/f;->d:I

    invoke-static {v0, v1, v2, v3, v4}, Lcom/waiqin365/compons/c/m;->a(DDI)[D

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/dn;->b:Lcom/waiqin365/lightapp/kehu/dm;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/dm;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;->c(Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;)Lcom/baidu/mapapi/model/LatLngBounds$Builder;

    move-result-object v1

    new-instance v2, Lcom/baidu/mapapi/model/LatLng;

    aget-wide v4, v0, v8

    aget-wide v6, v0, v9

    invoke-direct {v2, v4, v5, v6, v7}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/model/LatLngBounds$Builder;->include(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/model/LatLngBounds$Builder;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/dn;->b:Lcom/waiqin365/lightapp/kehu/dm;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/dm;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;->d(Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;)V

    new-instance v1, Lcom/baidu/mapapi/map/MyLocationData$Builder;

    invoke-direct {v1}, Lcom/baidu/mapapi/map/MyLocationData$Builder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/dn;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->f()D

    move-result-wide v2

    double-to-float v2, v2

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->accuracy(F)Lcom/baidu/mapapi/map/MyLocationData$Builder;

    move-result-object v1

    const/high16 v2, 0x42c80000    # 100.0f

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->direction(F)Lcom/baidu/mapapi/map/MyLocationData$Builder;

    move-result-object v1

    aget-wide v2, v0, v8

    invoke-virtual {v1, v2, v3}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->latitude(D)Lcom/baidu/mapapi/map/MyLocationData$Builder;

    move-result-object v1

    aget-wide v2, v0, v9

    invoke-virtual {v1, v2, v3}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->longitude(D)Lcom/baidu/mapapi/map/MyLocationData$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/baidu/mapapi/map/MyLocationData$Builder;->build()Lcom/baidu/mapapi/map/MyLocationData;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/dn;->b:Lcom/waiqin365/lightapp/kehu/dm;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/dm;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;->e(Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;)Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/baidu/mapapi/map/BaiduMap;->setMyLocationData(Lcom/baidu/mapapi/map/MyLocationData;)V

    new-instance v1, Lcom/baidu/mapapi/model/LatLng;

    aget-wide v2, v0, v8

    aget-wide v4, v0, v9

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static {v1}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/dn;->b:Lcom/waiqin365/lightapp/kehu/dm;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/dm;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;->e(Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;)Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    const-string/jumbo v0, "%s,%s"

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/dn;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->b()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v2

    aput-object v2, v1, v8

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/dn;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->c()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v2

    aput-object v2, v1, v9

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/dn;->b:Lcom/waiqin365/lightapp/kehu/dm;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/dm;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;->f(Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/dn;->b:Lcom/waiqin365/lightapp/kehu/dm;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/dm;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;

    const v3, 0x7f08014d

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kehu/CMCustomerNearByMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/dn;->a:Lcom/waiqin365/compons/c/f;

    invoke-virtual {v2}, Lcom/waiqin365/compons/c/f;->e()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method
